import 'package:flutter/cupertino.dart';

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:kq_flutter_widgets/widgets/emptyView/empty_view.dart';
import 'package:kq_flutter_widgets/widgets/titleBar/kq_title_bar.dart';

/// 空布局
class EmptyViewDemo extends StatefulWidget {
  const EmptyViewDemo({Key? key}) : super(key: key);

  @override
  EmptyViewDemoState createState() => EmptyViewDemoState();
}

class EmptyViewDemoState extends State<EmptyViewDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: KqHeadBar(
        headTitle: '空布局演示',
        back: () {
          Get.back();
        },
      ),
      body: const KqEmptyView(
        text: "测试空布局文字很长很长很长很长很长很长测试空布局文字很长很长很长很长很长很长测试空布局文字很长很长很长很长很长很长",
      ),
    );
  }
}
